package main

import (
	"ZK306/common/grpc"
	"ZK306/common/inits"
	"ZK306/common/viper"
	"ZK306/service/CreateTable"
	"ZK306/service/internal"
	grpc2 "google.golang.org/grpc"
)

func main() {
	
	viper.InitApp()
	inits.InitNaCos()
	inits.InitConSul()
	inits.InitMysql()
	CreateTable.CreateTable()
	inits.InitRedis()

	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.Register(server)
	})
}
